<?php
class Android_Form_Login extends Zend_Form{
	public function init(){
		$this->setName('login');
		$this->setMethod('post');
		
		$login = new Zend_Form_Element_Text('login');
		$login	->setLabel('Login')
				->setRequired(true)
				->addFilter('StripTags')
				->addFilter('StringTrim')
				->addValidator('NotEmpty')
				->addValidator(new Zend_Validate_StringLength(4));
		$this->addElement($login);
		
		$pass = new Zend_Form_Element_Password('password');
		$pass	->setLabel('Password')
				->setRequired(true)
				->addFilter('StripTags')
				->addFilter('StringTrim')
				->addValidator('NotEmpty')
				->addValidator(new Zend_Validate_StringLength(4));
		$this->addElement($pass);
		
		$submit = new Zend_Form_Element_Submit('submit');
		$submit	->setLabel('Connect');
		$this->addElement($submit);
	}
}